package com.corechina.apex_osswords.controller;


import com.corechina.apex_osswords.common.Response;
import com.corechina.apex_osswords.service.ICoreVisitorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 访客信息表 前端控制器
 * </p>
 *
 * @author cc
 * @since 2022-05-30
 */

@Api(tags = "访客信息表")
@RestController
@RequestMapping("/core/visitor")
public class CoreVisitorController {

    @Autowired
    private ICoreVisitorService iCoreVisitorService;

    @ApiOperation("微信--获取手机号")
    @GetMapping("/getPhone")
    public Response getPhone(String code, String openId) {
        return iCoreVisitorService.getPhone(code, openId);
    }

}

